package com.qkl.xiatang.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "company")
public class CompanyEntity {

    @TableId(type= IdType.ASSIGN_ID)
    private String id;

    private String name;

    private String logo;

    private String director;

    private String 	tel;

    private String address;

    private Integer isDefault;

    private Double 	lng;

    private Double 	lat;

    private Integer flag;

    public boolean defaultCompany(){
        return Integer.valueOf(1).equals(isDefault);
    }

    public boolean testCompany(){
        return Integer.valueOf(0).equals(flag);
    }

}
